package org.beynet.jsonbinding.parser.types;

import java.io.IOException;
import java.io.InputStream;

import org.beynet.jsonbinding.parser.JSONParsingException;

public interface JSONParser {
    /**
     * Parse the stream. Return a JSONObject or a JSONArray
     * @param encoding
     * @param is
     * @return
     * @throws IOException
     * @throws JSONParsingException
     */
    public Object parse(String encoding,InputStream is) throws IOException, JSONParsingException;
}
